#!/bin/bash

count=$(grep $'\r' $1 | wc -l)

# count > 0 when fileformat is dos
if [ "${count}" == "0" ]; then
echo 0
else
echo 1
fi